<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>新建问卷</title>
		<link rel="stylesheet" type="text/css" href="css/main.css">
	</head>

	<body>
		<div style="margin:0 auto; width:1000px" >
		<%@include file="header.jsp"%>
		<form action="questionAdd?pid=<%=request.getParameter("pid") %>" method="post">
		<table width="100%" border="1" cellpadding="2" cellspacing="0"
			bordercolor="#c8d7e3" class="forum_text" style="margin-top:10px">
			<tr>
				<td>标题</td>
				<td><input type="text" name="question.title" width="100%"/></td>
			</tr>
			<tr>
				<td>选项一</td>
				<td><input type="text" name="optionList[0].content" width="100%"/></td>
			</tr>
			<tr>
				<td>选项二</td>
				<td><input type="text" name="optionList[1].content" width="100%"/></td>
			</tr>
			<tr>
				<td>选项三</td>
				<td><input type="text" name="optionList[2].content" width="100%"/></td>
			</tr>
			<tr>
				<td>选项四</td>
				<td><input type="text" name="optionList[3].content" width="100%"/></td>
			</tr>
			<tr>
				<td><input type="submit" value="添加"/></td>
			</tr>
		</table>
		</form>
		</div>
	</body>
</html>
